<?php

namespace app\model;

use think\Model;

class GoodsAgency extends Model
{

    protected $connection = 'mysql';

    protected $pk = 'id';

    protected $name = 'goods_agency';

    public function goods()
    {
        return $this->hasOne(Goods::class, 'goods_id', 'id');
    }
}
